package com.weifangfirecontrolformal.weifangfirecontrolformal.model;


import com.baomidou.mybatisplus.annotation.TableName;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BasisEntity;

import java.util.Date;

//@Data
@TableName("user")
public class User extends BasisEntity {

    private String id;//主键id
    private String name;//真实姓名
    private String phone;//手机号码
    private String homeId;//归属id：单位id或者机构id
    private String email;//电子邮箱
    private String accountname;//登录账号
    private String accountpassword;//登录密码
    private Boolean isUse;//是否在用：1 启用 2 停用
    private Date createtime;//创建时间
    private Integer type;//账户类型：1 机构账户 2 单位账户

    public String getId() {
        return this.getString("id");
    }

    public void setId(String id) {
        this.put("id",id);
    }

    public String getName() {
        return this.getString("name");
    }

    public void setName(String name) {
        this.put("name",name);
    }

    public String getPhone() {
        return this.getString("phone");
    }

    public void setPhone(String phone) {
        this.put("phone",phone);
    }

    public String getHomeId() {
        return this.getString("homeId");
    }

    public void setHomeId(String homeId) {
        this.put("homeId",homeId);
    }

    public String getEmail() {
        return this.getString("email");
    }

    public void setEmail(String email) {
        this.put("email",email);
    }

    public String getAccountname() {
        return this.getString("accountname");
    }

    public void setAccountname(String accountname) {
        this.put("accountname",accountname);
    }

    public String getAccountpassword() {
        return this.getString("accountpassword");
    }

    public void setAccountpassword(String accountpassword) {
        this.put("accountpassword",accountpassword);
    }

    public Boolean getUse() {
        return this.getBoolean("use");
    }

    public void setUse(Boolean use) {
        this.put("use",use);
    }

    public Date getCreatetime() {
        return this.getDate("createtime");
    }

    public void setCreatetime(Date createtime) {
        this.put("createtime",createtime);
    }

    public Integer getType() {
        return this.getInteger("type");
    }

    public void setType(Integer type) {
        this.put("type",type);
    }
}
